package com.leosam.tvbox.mv.proxy;

import java.net.Proxy;

/**
 * M3u8下载参数
 */
public class M3u8DownloadOptions {
    /**
     * 失败重试次数
     */
    private int retryCount = 10;

    /**
     * 连接超时时间
     */
    private int connectTimeoutSeconds = 10;

    /**
     * 读取超时时间
     */
    private int readTimeoutSeconds = 20;

    /**
     * 重试间隔
     */
    private int retryIntervalSeconds = 1;

    /**
     * 当遇到文件冲突时,覆盖还是跳过
     */
    private boolean override = false;

    public boolean isOverride() {
        return override;
    }

    public void setOverride(boolean override) {
        this.override = override;
    }

    /**
     * 请求代理
     */
    private Proxy proxy;

    public int getRetryCount() {
        return retryCount;
    }

    public void setRetryCount(int retryCount) {
        this.retryCount = retryCount;
    }

    public int getConnectTimeoutSeconds() {
        return connectTimeoutSeconds;
    }

    public void setConnectTimeoutSeconds(int connectTimeoutSeconds) {
        this.connectTimeoutSeconds = connectTimeoutSeconds;
    }

    public int getReadTimeoutSeconds() {
        return readTimeoutSeconds;
    }

    public void setReadTimeoutSeconds(int readTimeoutSeconds) {
        this.readTimeoutSeconds = readTimeoutSeconds;
    }

    public int getRetryIntervalSeconds() {
        return retryIntervalSeconds;
    }

    public void setRetryIntervalSeconds(int retryIntervalSeconds) {
        this.retryIntervalSeconds = retryIntervalSeconds;
    }

    public Proxy getProxy() {
        return proxy;
    }

    public void setProxy(Proxy proxy) {
        this.proxy = proxy;
    }

}
